package com.cnbm.wcsbasic.protocol.netty.modbus.moban;

import com.cnbm.wcsbasic.protocol.netty.io.common.enmuc.ModbusFC;
import com.cnbm.wcsbasic.protocol.netty.io.common.enmuc.PlcVarType;
import com.cnbm.wcsbasic.protocol.netty.io.param.PlcVar;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2024-06-07 14:43
 */
public class DevPlcVar {

    public static final PlcVar heartBeat = new ModbusPlcVar("heartBeat",1 , ModbusFC.MB_HOLD_REG , PlcVarType.WORD,0,1,null);
    public static final PlcVar temp = new ModbusPlcVar("temp", 1, ModbusFC.MB_HOLD_REG, PlcVarType.BOOL,1,1,1 );
    public static final PlcVar data = new ModbusPlcVar("DATA1",1 , ModbusFC.MB_HOLD_REG , PlcVarType.WORD,600,1,null);

    public static final PlcVar bool = new ModbusPlcVar("bool",1 , ModbusFC.MB_HOLD_REG , PlcVarType.BOOL,26,1,null);
    public static final PlcVar boolArray = new ModbusPlcVar("boolArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.BOOL_Array,26,8,null);

    public static final PlcVar bytevar = new ModbusPlcVar("bytevar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.BYTE,10,1,null);
    public static final PlcVar byteArray = new ModbusPlcVar("byteArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.BYTE_Array,11,4,null);

    public static final PlcVar intvar = new ModbusPlcVar("intvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.INT,23,1,null);
    public static final PlcVar intArray = new ModbusPlcVar("intArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.INT_Array,45,9,null);

    public static final PlcVar sintvar = new ModbusPlcVar("sintvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.SINT,63,1,null);
    public static final PlcVar sintArray = new ModbusPlcVar("sintArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.SINT_Array,64,14,null);


    public static final PlcVar usintvar = new ModbusPlcVar("usintvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.USINT,71,1,null);
    public static final PlcVar usintArray = new ModbusPlcVar("usintArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.USINT_Array,72,14,null);

    public static final PlcVar dintvar = new ModbusPlcVar("dintvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.DINT,79,1,null);
    public static final PlcVar dintArray = new ModbusPlcVar("dintArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.DINT_Array,81,2,null);

    public static final PlcVar lintvar = new ModbusPlcVar("lintvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.LINT,85,1,null);
    public static final PlcVar lintArray = new ModbusPlcVar("lintArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.LINT_Array,89,2,null);


    public static final PlcVar stringvar = new ModbusPlcVar("stringvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.STRING,36,1,16);
    public static final PlcVar stringArray = new ModbusPlcVar("stringArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.STRING_Array,273,4,16);

    public static final PlcVar realvar = new ModbusPlcVar("realvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.REAL,30,1,null);
    public static final PlcVar realArray = new ModbusPlcVar("realArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.REAL_Array,181,10,null);

    public static final PlcVar lrealvar = new ModbusPlcVar("lrealvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.LREAL,32,1,null);
    public static final PlcVar lrealArray = new ModbusPlcVar("lrealArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.LREAL_Array,141,10,null);

    public static final PlcVar wordvar = new ModbusPlcVar("wordvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.WORD,0,1,null);
    public static final PlcVar wordArray = new ModbusPlcVar("wordArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.WORD_Array,54,9,null);

    public static final PlcVar dwordvar = new ModbusPlcVar("dwordvar",1 , ModbusFC.MB_HOLD_REG , PlcVarType.DWORD,21,1,null);
    public static final PlcVar dwordArray = new ModbusPlcVar("dwordArray",1 , ModbusFC.MB_HOLD_REG , PlcVarType.DWORD_Array,225,6,null);

}
